<?php
namespace app\index\controller;
use think\Config;

class Index {
    public function index() {
        return view();
    }

    // 获取token
    public function getToken() {
        $url = 'http://www.ghi.com';
        $params = [
            'type' => 1
        ];
        return json_decode(curl($url, $params));
    }
}
